//
//  UIColor+RandomColor.swift
//  微博个人swift
//
//  Created by 李灏 on 16/2/26.
//  Copyright © 2016年 lh. All rights reserved.
//

import UIKit

extension UIColor {
    //随机色
    class func randomColor()->UIColor{
        let r = CGFloat(Double(random() % 256)) / 255.0
        let g = CGFloat(Double(random() % 256)) / 255.0
        let b = CGFloat(Double(random() % 256)) / 255.0
        return UIColor(red: r, green: g, blue: b, alpha: 1)
    }
}
